<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<f:view>
	<h:head></h:head>
	<h:body>
		<ui:composition template="../../template/template.xhtml">
			<ui:define name="content">
				<div class="FORM_HEADER">Upload Documents</div>
				<h:form enctype="multipart/form-data">
					<h:panelGrid columns="1" styleClass="APPLICATION_CONTENT"
						cellpadding="2" width="100%">
						<h:inputHidden id="employeeId"
							value="#{tutorController.tutorDTO.id}" />
						<p:outputLabel value="Upload Image: " for="imageUpload" />
						<p:fileUpload 
							id="imageUpload"
							value="#{tutorController.file}"
							fileUploadListener="#{tutorController.uploadDocument}" 
							mode="advance"
							multiple="false" 
							sizeLimit="1000000"
							allowTypes="/(\.|\/)(gif|jpe?g|png)$/" style="width: 95%;"
							auto="false">
						</p:fileUpload>
					</h:panelGrid>
				</h:form>
			</ui:define>
		</ui:composition>
	</h:body>
</f:view>
</html>